Code Library Setup
The Code Library defines the rules to be used to:
- Form strings between the points
- Assign symbols to the points
- Symbols can also be defined to be displayed
The Code Library is usually defined in the GeoSurvey_config.xml file.
The Symbol definitions are also defined in the same file.
A sample is shown in the distributed GeoSurvey_config.xml
See MST Code Library for the old MST format file.
String Definitions
Any feature which is defined by a String in the job can be formed.
Examples: Fence, Power Line, Water Pipe, Building, Edge Bitumen..
The program will form a string from points with the same code.
If the Code Library defines a String by code "KB*".
If your job has several points with code "KB1" and several with "KB2".
Two strings will be formed, one for KB1 and one for KB2.
- String Code - "KB*"
- Type of String - Traverse, Discon etc
- Layer name for the string
- Colour of the string
- Line Style of the string
- Line Thickness of the string
When the string is created, if the layer does not exist,
it will be created with the colour, style specified.
For more info see Setting up XML String Codes.
Point Definitions
Any feature which is standalone item is defined by a Point Symbol in the job.
Examples: Tree, Ref Mark, ...
The program will assign a symbol to the point and will optionally scale the symbol (Tree)
If the Code Library defines a String by code "TR".
If your job has several points with codes "TR+C5" and "TR+C10".
The Tree symbol will be assigned to the points, one scaled to 5m, the other to 10m.
- Point Code - "TR*"
- Symbol to be drawn
- Contourable
- Layer - points i moved to this layer
- Colour of the string
- SymbolSize - symbol size unless scaled
When the point symbol is assigned if the layer does not exist,
it will be created with the colour, style specified.
For more info see Setting up XML Point Symbolisation codes
Symbol Definitions
GeoSurvey always starts with the standard 16 symbols (0-15) defined.
In addition you can define extra symbols in the config file (GeoSurvey_config.xml).
Each symbol has a name and is defined as a set of drawing instructions.
Symbols are defined in a +-1 space in x and y as a set of lines, circles to be drawn.
- Plotabs - draw a line to x,y
- Circle - draw at x,y, given radius
- Colour - set the line colour
- FillColour - sets fill colour for filled shapes
When the point symbol is assigned it is by assigning the symbol name
For more info see Setting up Symbols
How It Works
The program follows these steps:
- Read in the Code Library File (usually GeoSurvey_config.xml)
- Form a list of point codes from the library. Say we have 'TB*', and 'BB*' in the list
- Process each point and using each point create a compatible point code if necessary.
e.g. If the Library code is 'BB*', the point code is 'BB1', the program searches the existing
code list and finds a match 'BB*'. It then creates a temp new code in the list 'BB1' to
make it easy to match subsequest points.
- Form the Strings using the point codes and any Library 'string' definitions.
- Once each string has been created it will be placed on the layer, colour, style etc as per
the Library definition
Do Point Symbolisation - first points are matched by code
- When a match is found, the point is placxed on the requested layer, assigned the symbol etc as per the
'<Point...' Library definition
For more info see Code Processing